<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>极目商城商品详情</title>
<link href="css/forword.css" type="text/css" rel="stylesheet">
<!-- 样式表外部引入 -->
<style type="text/css">
</style>
</head>
<body>
<!-- 头部包含文件 -->
<%@include file="../commonq/myhead.jsp" %>
<table class="main">
	<tr>
		<td style="width:150px;vertical-align:top;">
			
		</td>
		<td style="vertical-align:top;padding:20px;">
		<div align="left">
			<p>商品信息：</p>
			
			<%-- <div><img alt="<s:property value="productname"/>" src="photo/product/<s:property value="product.photo"/>"></div> --%>
			
			<form action="toaddToBuyCar.action?productid=<s:property value="productid"/>" method="post">
				<table>
					<col style="width:150px;"><col style="width:250px;">
				<tr>
				    <td rowspan="9">
				      <img style="height:560px" alt="<s:property value="product.productname"/>" src="photo/product/<s:property value="product.photo"/>">
				    </td>
				    <td rowspan="9"></td>
				</tr>
				
				<tr height="70px">
				   <td>商品大分类名：</td>
				   <td><s:property value="product.subtype.supertype.typename"/></td>
				</tr>
				<tr height="70px">
				   <td>商品小分类名：</td>
				   <td><s:property value="product.subtype.subtypename"/></td>
				</tr>
				<tr height="70px">
				   <td>商品名：</td>
				   <td><s:property value="product.productname"/></td>
				</tr>
				<tr height="70px">
				   <td>商品属性：</td>
				   <s:iterator value="product.productAttrs">
				   <td>[<s:property value="attr.attrname"/>.<s:property value="attr.attrvalue"/>.<s:property value="attrvalue"/>]</td>
				   </s:iterator>
				</tr>
				<tr height="70px">
				   <td>商品原价：</td>
				   <td><s:property value="product.price"/></td>
				</tr>
				<tr height="70px">
				   <td>商品现价：</td>
				   <td><s:property value="product.nowprice"/></td>
				</tr>
				<tr height="70px">
				   <td>商品库存：</td>
				   <td><s:property value="product.productNum"/></td>
				</tr>
					<tr height="70px">
						<td colspan="2" align="right">
							<input type="submit" value="加入购物车">
							<a href="top.action">返回</a>
						</td>
					</tr>
				</table>
			</form>
			</div>
		</td>
	</tr>

</table>
<h3><strong>用户评论：</strong></h3>
<hr size="5px" color="gray">
<s:iterator value="product.comments">
<table>
	<tr><td>用户ID为<s:property value="user.id"/>的评论：</td>
	</tr>
	<tr>
		<td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;评论标题：<s:property value="ctitle"/></td>
		<td>|内容：<s:property value="content"/></td>
		<td>|评论时间：<s:property value="cdate"/></td>
	</tr>
</table>
</s:iterator>
<%@include file="../commonq/tail.jsp" %>
</body>
</html>